package com.ftg.learn.chapter17;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author kangjx
 * @version 1.0
 * @date 2023/3/27 下午3:49
 */
public class Demo {

    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("annotationapplication.xml");

        Tiger t3 = (Tiger) ac.getBean("tttt");
        System.out.println(t3.getName());


        Tiger t2 = (Tiger) ac.getBean("t2");
        System.out.println(t2.getName());
    }

}
